import { useABI_upload_Contract } from '../contacthelp/useContract.js'

export async function uploadFiles ({ library, account, contractAddress }, {
  name, cid, filesize,
}) {
  const contract = useABI_upload_Contract(library, account, contractAddress, true)
  const info = await contract.add(name, cid, filesize)

  return info
}
